.viewport {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f4f4f4;
  .top {
    padding: 20rpx 20rpx 0 20rpx;
    .no-goods {
      height: 300rpx;
      line-height: 300rpx;
      text-align: center;
    }
    .item {
      position: relative;
      height: 190rpx;
      width: 100%;
      padding: 0 20rpx;
      margin-bottom: 20rpx;
      background-color: #fff;
      .inner {
        display: flex;
        align-items: center;
        .pic-box {
          padding: 20rpx 0;
          .pic {
            width: 150rpx;
            height: 150rpx;
            margin-right: 20rpx;
          }
        }
        .meta {
          height: 150rpx;
          display: flex;
          flex-direction: column;
          font-size: 28rpx;
          justify-content: space-between;
          align-items: flex-start;

          flex: 1;
          .name {
            width: 100%;
            line-height: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
          }
          .attrs {
            padding: 5rpx 10rpx;
            font-size: 24rpx;
            color: #888;
            background-color: #f7f7f8;
            border-radius: 5rpx;
            // border: 1px solid #ddd;
          }
        }
        .count {
          position: absolute;
          right: 20rpx;
          bottom: 20rpx;
          line-height: 1;
          font-size: 24rpx;
          color: #aaa;
          transform: scale(0.8);
        }
      }
    }
  }
  .top-2 {
    height: 800rpx;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 28rpx;
    color: #888;
    .tip {
      margin-bottom: 20rpx;
    }

    .to-login {
      background-color: #27ba9b;
      width: 200rpx;
      height: 60rpx;
      line-height: 60rpx;
      text-align: center;
      color: #fff;
      border-radius: 50rpx;
    }
  }
  .bottom {
    display: flex;
    // width: 100%;
    flex: 1;
    padding-bottom: 120rpx;
  }

  .above {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20rpx;
    width: 100%;
    height: 120rpx;
    font-size: 28rpx;
    color: #444;
    background-color: #fff;
    border-bottom: 1px solid #f4f4f4;
    z-index: 200;

    .left {
      width: 400rpx;

      .all,
      .total {
        display: inline-block;
      }
      .all {
        margin-right: 20rpx;
      }
    }
    .right {
      .pay-btn {
        width: 250rpx;
        padding: 0;
        margin: 0;
        font-size: 28rpx;
        color: #fff;
        border-radius: 50rpx;
        background-color: #27ba9b;
      }
    }
  }

  .checkbox {
    width: 60rpx;
    line-height: 120rpx;
    &::before {
      content: '\e6cd';
      font-family: 'erabbit' !important;
      font-size: 40rpx;
      color: #444;
    }
    &.checked:before {
      content: '\e6cc';
      color: #27ba9b;
    }
  }
  .price {
    line-height: 1;
    font-size: 26rpx;
    margin-bottom: 2rpx;
    color: #cf4444;
    &::before {
      content: '¥';
      font-size: 80%;
    }
  }
}
